package com.lancoo.lancooimageloader.glide;

import com.bumptech.glide.RequestManager;
import com.lancoo.lancooimageloader.LancooCancelableCallback;

/**
 * Created by Administrator on 2017/6/12 0012.
 */

public class GlideCancelableCallback implements LancooCancelableCallback{
    RequestManager mRequestManager;

    public GlideCancelableCallback(RequestManager requestManager) {
        this.mRequestManager = requestManager;
    }

    @Override
    public void cancel() {
       mRequestManager.pauseRequests();
    }

    @Override
    public boolean isCancelled() {
        return false;
    }
}
